59e879c19022b8a1a073661b4c0272442016a358,aNewJKUApp/src/main/java/org/voidsink/anewjkuapp/kusss/KusssHandler.java,KusssHandler,getExamIcal,#Context#CalendarBuilder#,324

Before Change


                    new String[]{"ical.category.examregs"});

            Log.d(TAG, String.format("getExamIcal: RequestMethod: %s", conn.getContentType()));
            if (!conn.getContentType().contains("text/calendar")) {
                conn.disconnect();
                return null;
            } else {

After Change


            writeParams(conn, new String[]{"selectAll"},
                    new String[]{"ical.category.examregs"});

            final String contentType = conn.getContentType();

            if (contentType == null) {
                conn.disconnect();
                return null;
            }

            Log.d(TAG, String.format("getExamIcal: RequestMethod: %s", contentType));
            if (!contentType.contains("text/calendar")) {
                conn.disconnect();
                return null;
            }
            final long length = copyStream(conn.getInputStream(), data);